
package za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Prototype.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.FactoryMethodPattern.Model.Dog;

public class DogFactory 
{
    private static Dog dog = null;
    
    public static Dog createDog(String type)
    {
        if(dog == null)
            dog = new Dog(type);
        
        return dog;
    }
}